package com.itheima.service;

import com.itheima.entity.User;
import org.springframework.transaction.annotation.Transactional;
/**
 *用户模块业务层实现接口
 * @author msi
 * @date 2022/5/17
 * @version 1.0
 */
@Transactional(rollbackFor =Exception.class )
public interface UserService {
    /**
     * 登陆方法
     * @param phone 电话号码
     * @return 返回用户对象
     */
    User login(String phone);
}
